package org.tempuri;

public class IWSOperationProxy implements org.tempuri.IWSOperation {
  private String _endpoint = null;
  private org.tempuri.IWSOperation iWSOperation = null;
  
  public IWSOperationProxy() {
    _initIWSOperationProxy();
  }
  
  public IWSOperationProxy(String endpoint) {
    _endpoint = endpoint;
    _initIWSOperationProxy();
  }
  
  private void _initIWSOperationProxy() {
    try {
      iWSOperation = (new org.tempuri.WSOperationServiceLocator()).getBasicHttpBinding_IWSOperation();
      if (iWSOperation != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)iWSOperation)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)iWSOperation)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (iWSOperation != null)
      ((javax.xml.rpc.Stub)iWSOperation)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.IWSOperation getIWSOperation() {
    if (iWSOperation == null)
      _initIWSOperationProxy();
    return iWSOperation;
  }
  
  public java.lang.String sendMessage(java.lang.String messageXmlText) throws java.rmi.RemoteException{
    if (iWSOperation == null)
      _initIWSOperationProxy();
    return iWSOperation.sendMessage(messageXmlText);
  }
  
  public java.lang.String getMessageStatus(java.lang.String messageID) throws java.rmi.RemoteException{
    if (iWSOperation == null)
      _initIWSOperationProxy();
    return iWSOperation.getMessageStatus(messageID);
  }
  
  public java.lang.String getReturnMessage(java.lang.String messageID) throws java.rmi.RemoteException{
    if (iWSOperation == null)
      _initIWSOperationProxy();
    return iWSOperation.getReturnMessage(messageID);
  }
  
  
}